//
//  DanceManager.m
//  gong
//
//  Created by echo on 14-1-12.
//  Copyright (c) 2014年 echo. All rights reserved.
//

#import "DanceManager.h"
#import "ScriptParsor.h"
#import "UIAlertView+Blocks.h"
#import "Constants.h"
#import "BlockAlertView.h"

@implementation DanceManager

SharedInstanceBuilder(DanceManager)

- (void)dance
{
    BlockAlertView *alert = [BlockAlertView alertWithTitle:@"" message:@"你跳了一段舞蹈"];
    [alert addButtonWithTitle:@"舞蹈跳得非常棒" block:^{
        [[ScriptParsor sharedInstance] gotoFlagByFlagName:@"danceOK"];
    }];
    [alert addButtonWithTitle:@"舞蹈跳得不怎么样" block:^{
        [[ScriptParsor sharedInstance] gotoFlagByFlagName:@"danceBad"];
    }];
    [alert show];
}

- (void)learnDance
{
    [UIAlertView showAlertViewWithTitle:nil
                                message:@"你跟舞蹈老师跳了一段舞蹈"
                      cancelButtonTitle:@"OK"
                      otherButtonTitles:nil
                              onDismiss:^(int buttonIndex) {
                                  
                              }
                               onCancel:^{
                                   [[ScriptParsor sharedInstance] gotoFlagByFlagName:@"learnDanceEnd"];
                               }];
}

@end
